<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // 数字字符串转数字

        // '3.55' 变成数字
        // parseInt()
        // parseFloat()

        var n = '3.55' ;
        // var res = n + 0 ;   // '3.550'

        var res = n % 1000000;
        console.log(res);

        // 变量只会通过赋值进行改变
        console.log(n) ;  // '3.55'


        


        

    </script>
    
</body>
</html>